package com.fgba.express.core.mapstruct;

import com.fgba.express.core.dto.BaseDto;
import com.fgba.express.core.entity.BaseEntity;
import com.fgba.express.core.search.BaseSearch;

import java.util.List;

public interface BaseStruct<T extends BaseEntity, D extends BaseDto, Q extends BaseSearch> {
    T entityConvertDto(D dto);

    D dtoConvertEntity(T entity);

    List<T> entityConvertDto(List<D> dtoList);

    List<D> dtoConvertEntity(List<T> entityList);

    T entityConvertSearch(Q search);
}
